import React from 'react';
import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';

const NotFoundPage: React.FC = () => {
  const navigateTo = useNavigate()

  return (
    <div>
      <Result
        status="404"
        title="404"
        subTitle="抱歉，您无权访问此页面或者当前页面不存在"
        extra={<Button type="primary" onClick={() => navigateTo('/home')}>返回首页</Button>}
      />
    </div>
  )
};

export default NotFoundPage;

